<template>
    <div class="homg">
        <h1>home</h1>
        <button class="btn btn-success" v-on:click="goAdmin">Let's go admin</button>
    </div>

</template>

<script>
    export default {
        name: "Home",
        methods:{
            goAdmin(){
                // 返回上一级页面
                // return this.$router.go(-1);
                // 去某一个页面
                // return this.$router.replace("./login")
                // return this.$router.replace({name:"loginLink"})
                // this.$router.push("./login")
                this.$router.push({name:"loginLink"})
            }
        }
    }
</script>

<style scoped>

</style>